<?php
/**
 * Created by PhpStorm.
 * User: Daxu
 * Date: 2017/11/3
 * Time: 15:53
 */

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use App\Services\Platform;
class PlatformServiceProvider extends ServiceProvider
{
    public function register()
    {
        //
        $this->app->singleton(Platform::class, function ($app){
            return new Platform(config('platform'));
        });
    }
}